import CrudApi from "@/core/CrudApi";
import CrudController, {type CrudConfig} from "@/components/CatCrud/CrudController";
import {Generics} from "@/core/decorators/Generics";
import {Role, RoleParam} from "./RoleParam";

export class RoleApi extends CrudApi<Role, void, RoleParam> {
    constructor() {
        super('/Role');
    }
}

export interface RoleConfig extends CrudConfig<Role, void, RoleParam> {
}

@Generics({V: Role, S: RoleParam, API: RoleApi})
export default class RoleController extends CrudController<Role, void, RoleParam, RoleConfig, RoleApi> {
}